import request from '@/utils/request'

// 查询农作物生长情况列表
export function listGrow(query) {
  return request({
    url: '/source/grow/list',
    method: 'get',
    params: query
  })
}

// 查询农作物生长情况详细
export function getGrow(growId) {
  return request({
    url: '/source/grow/' + growId,
    method: 'get'
  })
}

// 新增农作物生长情况
export function addGrow(data) {
  return request({
    url: '/source/grow',
    method: 'post',
    data: data
  })
}

// 修改农作物生长情况
export function updateGrow(data) {
  return request({
    url: '/source/grow',
    method: 'put',
    data: data
  })
}

// 删除农作物生长情况
export function delGrow(growId) {
  return request({
    url: '/source/grow/' + growId,
    method: 'delete'
  })
}
